﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}
<link href="~/lib/layui/css/layui.css" rel="stylesheet" />
<script src="~/lib/layui/layui.js"></script>
<script src="~/js/js.cookie.js"></script>
<script src="~/js/moment.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>




<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智慧农业-智慧畜牧育种管理平台</title>
</head>
<body>
    <div class="layui-layout layui-layout-admin">

        <div class="layui-card-header">水平导航菜单</div>
        <div class="layui-card-body">
            <ul class="layui-nav" lay-filter="component-nav">
                <li class="layui-nav-item"><a onclick="setIFrame(1)">基本信息</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(2)">银行账户</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(3)">服务人员</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(4)">客户联系</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(5)">产品方案</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(6)">折扣方案</a></li>
                <li class="layui-nav-item"><a onclick="setIFrame(7)">上传附件</a></li>
            </ul>
        </div>


    </div>



    @* <script src="~/Content/layui-main/dist/layui.js"></script>
    <link href="~/Content/layui-main/dist/css/layui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-3.4.1.js"></script> *@

    <script>


        function setIFrame(flag) {

            switch (flag) {
                case 1:
                    $("#iframeShow").attr("src", "/Procurement/Clientessential");
                    break;
                case 2:
                    $("#iframeShow").attr("src", "/Procurement/Clientbankaccount");
                    break;
                case 3:
                    $("#iframeShow").attr("src", "/Procurement/Clientserve");
                    break;
                case 4:
                    $("#iframeShow").attr("src", "/Procurement/Clientcontact");
                    break;
                case 5:
                    $("#iframeShow").attr("src", "/Procurement/Clientproducts");
                    break;
                case 6:
                    $("#iframeShow").attr("src", "/Procurement/Clientdiscount");
                    break;
            }
        }
        //js
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element
                , layer = layui.layer
                , util = layui.util
                , $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                //左侧菜单事件
                menuleft: function (othis) {
                    layer.msg('展开左侧菜单的操作', { icon: 0 });
                }
                , menuright: function () {
                    layer.open({
                        type: 1
                        , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                        , area: ['260px', '100%']
                        , offset: 'rt' //右上角
                        , anim: 5
                        , shadeclose: true
                    });
                }
            });

        });
    </script>
</body>
<float>
    <div class="layui-body">

        <iframe src="" id="iframeShow" width="100%" height="100%" frameborder="no" border="0"></iframe>

    </div>
</float>
</html>










